//
//  WmcVersionInfoModel.swift
//  YPWatermarkCamera
//
//  Created by 周诗松 on 2022/3/29.
//

import Foundation

struct WmcVersionInfoModel: YPNetworkJsonProtocol {
    
    /// 版本号
    var versionNum: String = ""
    
    /// 版本名称
    var versionName: String = ""

    /// 版本代码
    var versionCode: Int = 0
    
    /// 版本说明
    var versionExplain: String = ""

    /// 下载路径
    var path: String = ""

    /// 是否强制更新 0：否  1：是
    var force: Bool = false

    mutating func mapping(mapper: HelpingMapper) {
        mapper <<< self.versionNum <-- "version_num"
        mapper <<< self.versionName <-- "version_name"
        mapper <<< self.versionCode <-- "version_code"
        mapper <<< self.versionExplain <-- "version_explain"
        mapper <<< self.path <-- "path"
        mapper <<< self.force <-- "force"
    }
}
